package com.walter.learn.UseThread.ThreadDemo1;

/*
 * MyFileTranslator.java
 * 线程2
 */
public class MyFileTranslator extends Thread {
    private MyBufferCache buffer;//引用变量

    public MyFileTranslator(MyBufferCache buffer) {
        this.buffer = buffer;
    }

    public void run() {
        //      System.out.println(Thread.currentThread().getName());
        buffer.transform();
    }
}
